package com.firebird.app.kotlin.stock.ui.regist.model

import com.firebird.app.kotlin.stock.data.SimpleBean
import com.firebird.app.kotlin.stock.net.RetrofitClient
import com.firebird.app.kotlin.stock.ui.regist.contract.RegistContract
import io.reactivex.Flowable
import okhttp3.RequestBody


class RegistModel : RegistContract.Model {
    override fun getCode(body: RequestBody?): Flowable<SimpleBean?>? {
        return RetrofitClient.instance?.api?.getCodeData(body)
    }

    override fun getData(body: RequestBody?): Flowable<SimpleBean?>? {
        return RetrofitClient.instance?.api?.getRegistData(body)
    }
}